package com.gxa.admin.recycling.service.impl;

import com.gxa.admin.recycling.mapper.AdminRoleMapper;
import com.gxa.admin.recycling.service.AdminRoleService;
import com.gxa.core.recycling.pojo.Adminrole;
import com.gxa.core.recycling.service.impl.BaseServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * @author R
 * @data 2021-12-03 14:16
 */
@Service
public class AdminRoleServiceImpl extends BaseServiceImpl<Adminrole> implements AdminRoleService {

    @Autowired
    AdminRoleMapper mapper;

    @Override
    public void deleteByAdminId(Integer id) {
        mapper.deleteByAdminId(id);
    }

    @Override
    public void add(Integer aid, Integer rid) {
        mapper.add(aid,rid);
    }

    @Override
    public List<Integer> getContact(Long id) {
        List<Integer> contact = mapper.getContact(id);
        return contact;
    }
}
